package edu.gdin.ecommerce.util;

import javax.servlet.http.HttpServletRequest;

import org.apache.struts2.ServletActionContext;

public class FilePath {

	public static String rootPath() {
		return ServletActionContext.getServletContext().getRealPath("/");
	}
	
	public static String relativePath() {
		return ParamConverter.paramsConvert("SYS_DOWNLOAD_PATH_EXCEL", "admin/downloads/");
	}
	
	public static String downloadPath() {
		return rootPath() + relativePath();
	}
	
}
